import Layout from '@/layout'

const organizationalStructure = {
  path: '/orgStructure',
  component: Layout,
  redirect: 'noRedirect',
  name: 'orgStructure',
  meta: {
    title: '基础信息',
    icon: 'component',
    roles: ['root']
  },
  children: [
    {
      path: 'roleManagement',
      name: 'roleManagement',
      component: () => import('@/views/organizationalStructure/roleManagement.vue'),
      meta: { title: '角色管理', roles: ['root'] }
    },
    {
      path: 'dpManagement',
      name: 'dpManagement',
      component: () => import('@/views/organizationalStructure/dpManagement.vue'),
      meta: { title: '部门管理', roles: ['root'] }
    },
    {
      path: 'staffManagement',
      name: 'staffManagement',
      component: () => import('@/views/organizationalStructure/staffManagement.vue'),
      meta: { title: '员工管理', roles: ['root'] }
    },
    {
      path: 'authManagement',
      name: 'authManagement',
      component: () => import('@/views/organizationalStructure/authManagement.vue'),
      meta: { title: '档案管理员管理', roles: ['root'] }
    }
  ]
}

export default organizationalStructure
